import request from '@/utils/request'

// 查询团体会名称列表
export function listName(query) {
  return request({
    url: '/members/name/list',
    method: 'get',
    params: query
  })
}

// 查询团体会名称详细
export function getName(id) {
  return request({
    url: '/members/name/' + id,
    method: 'get'
  })
}

// 新增团体会名称
export function addName(data) {
  return request({
    url: '/members/name',
    method: 'post',
    data: data
  })
}

// 修改团体会名称
export function updateName(data) {
  return request({
    url: '/members/name',
    method: 'put',
    data: data
  })
}

// 删除团体会名称
export function delName(id) {
  return request({
    url: '/members/name/' + id,
    method: 'delete'
  })
}

// 会务操作状态修改
export function changeMeetingStatus(id, status) {
  const data = {
    id,
    meetingStatus
  }
  return request({
    url: '/members/name/changeStatus',
    method: 'put',
    data: data
  })
}

// 圈子操作状态修改
export function changeCircleStatus(id, status) {
  const data = {
    id,
    circleStatus
  }
  return request({
    url: '/members/name/changeStatus',
    method: 'put',
    data: data
  })
}


